package space.xxhui.fortest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import space.xxhui.service.TestService;

/**
 * Created by hui on 2017/7/19.
 */
@RestController
public class MyRestController {
    @Autowired
    private TestService testService;

    @RequestMapping(value = "/testRest" , produces = "text/plain;charset=UTF-8")
    public @ResponseBody String testRest(){
        return testService.sysSomething();
    }
}
